import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '是否处理',
    align: "center",
    dataIndex: 'deal'
  },
  {
    title: '处理',
    align: "center",
    dataIndex: 'dealStatus'
  },
  {
    title: '序号',
    align: "center",
    dataIndex: 'num'
  },
  {
    title: '名称',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '偏移字节',
    align: "center",
    dataIndex: 'offset'
  },
  {
    title: '数据长度',
    align: "center",
    dataIndex: 'dateLength'
  },
  {
    title: '数据类型',
    align: "center",
    dataIndex: 'dataType_dictText'
  },
  {
    title: '量纲',
    align: "center",
    dataIndex: 'lg'
  },
  {
    title: '单位',
    align: "center",
    dataIndex: 'unit'
  },
  {
    title: '最小值',
    align: "center",
    dataIndex: 'min'
  },
  {
    title: '最大值',
    align: "center",
    dataIndex: 'max'
  },
  {
    title: '阈值区间',
    align: "center",
    dataIndex: 'yuval'
  },
  {
    title: '正确列表',
    align: "center",
    dataIndex: 'rightData'
  },
  {
    title: '提示列表',
    align: "center",
    dataIndex: 'tip'
  },
  {
    title: '占位',
    align: "center",
    dataIndex: 'position'
  },
  {
    title: '显示类型',
    align: "center",
    dataIndex: 'showType'
  },
  {
    title: '含义转换',
    align: "center",
    dataIndex: 'conver'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: '序号',
    align: "center",
    dataIndex: 'numIndex'
  },
  {
    title: 'Excel模版ID',
    align: "center",
    dataIndex: 'excelId'
  },
];

// 高级查询数据
export const superQuerySchema = {
  deal: {title: '是否处理',order: 0,view: 'number', type: 'number',},
  dealStatus: {title: '处理',order: 1,view: 'number', type: 'number',},
  num: {title: '序号',order: 2,view: 'text', type: 'string',},
  name: {title: '名称',order: 3,view: 'text', type: 'string',},
  offset: {title: '偏移字节',order: 4,view: 'number', type: 'number',},
  dateLength: {title: '数据长度',order: 5,view: 'number', type: 'number',},
  dataType: {title: '数据类型',order: 6,view: 'list', type: 'string',dictCode: 'param_type',},
  lg: {title: '量纲',order: 7,view: 'text', type: 'string',},
  unit: {title: '单位',order: 8,view: 'text', type: 'string',},
  min: {title: '最小值',order: 9,view: 'text', type: 'string',},
  max: {title: '最大值',order: 10,view: 'text', type: 'string',},
  yuval: {title: '阈值区间',order: 11,view: 'text', type: 'string',},
  rightData: {title: '正确列表',order: 12,view: 'text', type: 'string',},
  tip: {title: '提示列表',order: 13,view: 'text', type: 'string',},
  position: {title: '占位',order: 14,view: 'text', type: 'string',},
  showType: {title: '显示类型',order: 15,view: 'text', type: 'string',},
  conver: {title: '含义转换',order: 16,view: 'text', type: 'string',},
  remark: {title: '备注',order: 17,view: 'text', type: 'string',},
  numIndex: {title: '序号',order: 18,view: 'number', type: 'number',},
  excelId: {title: 'Excel模版ID',order: 19,view: 'text', type: 'string',},
};
